package com.itheima.mapper;


import com.itheima.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {

    void addRole(Role role);

    void setRoleAndMenu(@Param("menusIds") Integer[] menusIds, @Param("id") Integer id);


    List<Role> findByCondition(@Param("queryString") String queryString);

    Integer findCountById(@Param("id") Integer id);

    void deleteAssocation(@Param("id") Integer id);

    void deleteById(@Param("id") Integer id);

    void editRole(Role role);

    void setRoleMenus(@Param("id") Integer id, @Param("menusIds") Integer[] menusIds);

    List<Role> findAll();
}
